<%@page import="beans.ClassBean"%>
<%@page import="java.util.List"%>
<%@page import="dao.MngClass"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Create Account Page</title>
    </head>    
    <body>        
        <%
            if (request.getAttribute("msg") != null) {
        %>
        <font color="green" > <%= request.getAttribute("msg")%> </font>
        <%
            }
            if (request.getAttribute("error") != null) {
        %>
        <font color="red" > <%= request.getAttribute("error")%> </font>
        <%
            }
        %>
        <form action="createAcc" method="get">       
            <table>
                <tr>
                    <td></td>
                    <td>  Add new account</td>
                </tr>
                <tr>
                    <td> Username</td>
                    <td> <input type="text" name="username" value=""><font color="red">*</font></td>
                </tr>
                <tr>
                    <td>  Password</td>
                    <td>  <input type="password" name="password" value=""><font color="red">*</font></td>
                </tr>
                <tr>
                    <td> Full name</td>
                    <td>  <input type="text" name="full_name" value=""><font color="red">*</font></td>
                </tr>
                <tr>
                    <td>  Gender </td>
                    <td> <select name="gender">
                            <option value="1">Nam</option>                           
                            <option value="0">Nữ</option>
                        </select><font color="red">*</font></td>
                </tr>
                <tr>
                    <td>  Address</td>
                    <td> <input type="text" name="address" value=""></td>
                </tr>
                <tr>
                    <td>  Phone </td>
                    <td> <input type="text" name="phone" value=""></td>
                </tr>
                <tr>
                    <td>  Email </td>
                    <td> <input type="text" name="email" value=""><br></td>
                </tr>
                <tr>
                    <td> Roll </td>
                    <td>
                        <select name="roll">
                            <option value="">Select</option>
                            <option value="admin">Admin</option>                        
                            <option value="staff">Staff</option>
                            <option value="student">Student</option>
                        </select><font color="red">*</font>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td> <input type="submit" value="Create"></td>
                </tr>
            </table>
        </form>
    </body>
</html>
